﻿namespace IceCreamMachine.Services.impl
{
    class IceCreamFactory
    {
        ICanMakeIceCream f = null;
        public ICanMakeIceCream Create(int type)
        {
            switch (type)
            {
                case 1:
                    f = new IceCreamService1();
                    break;
                case 2:
                    f = new IceCreamService2();

                    break;
                default:
                    break;
            }
            return f;
        }
    }
}
